# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glossaico
pkgver=1.0
pkgrel=1
pkgdesc="Language learning application based on LibreLingo"
url="https://codeberg.org/dimkard/glossaico"
# armhf and riscv64 blocked by py3-pyside2
# ppc64le blocked by py3-importlib-metadata
arch="noarch !armhf !riscv64 !ppc64le"
license="GPL-3.0-or-later"
depends="
	py3-importlib-metadata
	py3-librelingo-audios
	py3-librelingo-utils
	py3-librelingo-yaml-loader
	py3-pyside2
	py3-requests
	py3-slugify
	py3-yaml
	python3
	"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/dimkard/glossaico/archive/v$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
42378f47825925171f815b7de7837dc036d06ed98eb169f79128ac54c68c4b270682f9fa97ca3a78f52ae3e0d87446e8c71729a0a8927299dacd302f2e187aa8  glossaico-1.0.tar.gz
"
